<?php

namespace XYWY\Controller;

/**
 * DownloadsController类
 *
 * @since 1.0 <2015-10-21> SoChishun <14507247@qq.com> Added.
 */
class DownloadsController extends AppbaseController {

    public function index($id = 32) {
        //$left_menu = DXA('POrgDocument/DocumentCategory')->select_tree(array('where' => array('pid' => 31)));
        //$this->assign('left_menu', $left_menu);
        $list = DXA('POrgDocument/File')->get_paging_list(array('category_id' => $id), $show);
        $title = DXA('POrgDocument/DocumentCategory')->where(array('id' => $id))->getField('title');
        $this->assign('title', $title);
        $this->assign('list', $list);
        $this->assign('page', $show);
        $this->display();
    }

}
